package com.raffles.oa.action;

import java.util.List;

import com.raffles.oa.domain.CompanyElectricCharge;
import com.raffles.oa.service.RafflesOAServiceFactory;
import com.system.common.BaseAction;
import com.system.common.Page;
import com.system.util.BeanUtil;
import com.system.util.JsonUtil;

public class ElectricAction extends BaseAction {

	private static final long serialVersionUID = 5204696979761350800L;
	
	public void queryPageListCompanyElectricCharge() throws Exception{
		Page page = getPage();
		String search = getRequest().getParameter("search");
		
		CompanyElectricCharge companyElectricCharge = JsonUtil.jsonToBean(search, CompanyElectricCharge.class);
		if(BeanUtil.isObjectNull(companyElectricCharge)){
			companyElectricCharge = new CompanyElectricCharge();
		}
//		companyElectricCharge.setCoinShopName("Waton's");
		
		List<CompanyElectricCharge> list = RafflesOAServiceFactory.electricService.queryPageListCompanyElectricCharge(companyElectricCharge, page);
		
		pageListWriteOut(list, page);
	}

}
